//
//  UILabel + category.swift
//
//  Created by mac1 on 16/11/26.
//  Copyright © 2016年 万利. All rights reserved.
//

import UIKit
extension UILabel{
    /// 快速创建一个UILabel
    class func createLabel(title:String, titleColor: UIColor, fontSize: CGFloat ,textAlagument: NSTextAlignment ) -> UILabel
    {
        let label = UILabel()
        label.text = title
        label.textColor = titleColor
        label.textAlignment = textAlagument;
        label.font = UIFont.systemFont(ofSize: fontSize)
        return label
    }
}
